﻿using System;
using System.Runtime.Serialization;

namespace EvidenceManagement.Model.Security
{
    [DataContract]
    [DbObject(SelectCommandText = "SecureModule_Select"
        , InsertCommandText = "SecureModule_Insert"
        , DeleteCommandText = "SecureModule_Delete"
        , UpdateCommandText = "SecureModule_Update")]
    public class SecureModule : IAuditable
    {
        public SecureModule()
        {

        }

        [DbColumn]
        [DataMember]
        public Guid SecureModuleID { get; set; }

        [DbColumn]
        [DataMember]
        public string ModuleName { get; set; }

        [DbColumn]
        [DataMember]
        public string SystemName { get; set; }

        [DbColumn]
        [DataMember]
        public string AssemblyFullName { get; set; }

        #region IAuditable Members

        [DbColumn]
        [DataMember]
        public Guid CreatedBy { get; set; }

        [DbColumn]
        [DataMember]
        public Guid ModifiedBy { get; set; }

        public bool IsDeleted { get; set; }

        #endregion
    }
}
